package com.liyang.test;

import com.liyang.test.annotation.EnableMyConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


@SpringBootApplication
@EnableMyConfig
public class StartDemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(StartDemoApplication.class, args);
        // 验证我们的bean是否成功注入
        System.out.println(context.getBean("testBean", String.class));
    }

}

